package cn.bdqn.study_method;

import java.util.Random;
import java.util.Scanner;

public class GetSumAvgNoMethod {
    public static void  main(String[] args){
        Scanner input = new Scanner(System.in);
        /*System.out.println("请输入java成绩：");
        int java = input.nextInt();
        System.out.println("请输入C#成绩：");
        int c = input.nextInt();
        System.out.println("请输入db成绩：");
        int db = input.nextInt();*/
        Random r = new Random();
        int java = r.nextInt(100);
        int c = r.nextInt(100);
        int db = r.nextInt(100);
        System.out.println(java+"=="+c+"=="+db);
        int sum = java+c+db;
        double avg = (double)sum / 3;
        System.out.println("和是"+sum+"，平均值是："+avg);
    }
}
